<% if logged_in? -%>
ID: <%= current_user.id %> <br/>
Login: <%= current_user.login %> <br/>
<% else %>
You are not logged in
<% end %>